<!-- 引入公共部分 -->
{{extend './layout.html'}}

{{block 'link'}}
<!-- 添加css链接 -->
<link rel="stylesheet" href="/static/admin/css/personData.css">
{{/block}}

<!-- body代码 -->
{{block 'main'}}
    <!-- 头部导航代码 -->
    {{include './header.html'}}
    <div class="banner">
        <div class="left">
            <!-- 侧边栏 -->
            {{include './aside.html'}}
        </div>
        <div class="right">
            <div class="nav">
                <i class="iconfont shouyebeifen"></i>
                <a href="/admin">首页</a>
                <i class="iconfont zuoyoujiantou"></i>
                <a href="/admin/conservator/personData">个人信息</a>
            </div>
            <div class="wrap">
               <div class="personData">
                    <h2>管理员信息</h2>
                    <form id="personDataFrom" name="{{userInfo.sex}}">
                        <div>
                            <span>用户名:</span>
                            <input type="text" name="nickname" value={{userInfo.nickname?userInfo.nickname:0}}>
                        </div>
                        <div>
                            <span>性别:</span>
                            <input type="radio" id="male" name="sex" value="0" title="男"  /><label for="male"> 男</label>  
                            <input type="radio" id="female" name="sex" value="1" title="女" /><label for="female"> 女</label>  
                        </div>
                        <div>
                            <span>移动电话:</span>
                            <input type="tel" name="telephone" value={{userInfo.telephone}}>
                        </div>
                        <div>
                            <span>电子邮箱:</span>
                            <input type="text" id="email" name="email" value="{{userInfo.email}}">
                            <input type="hidden" id="flag" value={{userInfo.flag}}> 
                        </div>
                        <!-- <div>
                            <span>QQ:</span>
                            <input type="qq" value="137281972">
                        </div> -->
                        <div>
                            <span>状态:</span>
                            <b class="flagid" name={{userInfo.flag}} >{{userInfo.flag==2?'管理员':'超级管理员'}}</b>
                        </div>
                        <div>
                        </div>
                    </form>
                    <div class="btns">
                        <button class="btn updataBtn" onclick="openChangeFun()">修改信息</button>
                        <button class="btn addBtn" name="{{userInfo.id}}" onclick="changeFun()">保存修改</button>
                        <button class="btn serrchBtn">修改密码</button>
                    </div>
               </div>
               <!-- <div class="personHistory">
                    <h2>个人登录记录</h2>
                    <div class="personHistoryNav">
                        <span>每页显示条数</span>
                        <select name="" id="">
                            <option value="5">5</option>
                            <option value="5">5</option>
                            <option value="5">5</option>
                        </select>
                    </div>
                    <table class="tableOne" >
                        <thead>
                            <tr>
                                <td>序号</td>
                                <td>同户名</td>
                                <td>邮箱</td>
                                <td>电话</td>
                                <td>角色</td>
                                <td>加入时间</td>
                                <td>状态</td>
                                <td>操作</td>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>1</td>
                                <td>小龙</td>
                                <td>1732819972@qq.com</td>
                                <td>17637946325</td>
                                <td>管理员</td>
                                <td>2021-10-29-10：17</td>
                                <td>在线</td>
                                <td>
                                    <button>编辑</button>
                                    <button>管理</button>
                                    <button>删除</button>
                                </td>
                            </tr>
                            
                        </tbody>
                    </table>
                    <div class="paging">
                        <span class="pageMessage">第1到5条记录，共5条</span>
                        <button class="prev"  onclick="prevFun()">上一页</button>
                        <div class="pages">
                        </div>
                        <button class="next"  onclick="nextFun()">下一页</button>
                        <span>第</span>
                        <input class="searchByPage" type="number" min="1" value="1">
                        <span>页</span>
                        <button onclick="changePageFun()">跳转</button>
                    </div>
               </div> -->
            </div> 
        </div>
        <!-- 底部信息 -->
        {{include './footer.html'}}
    </div>
    {{include './tools.html'}}

{{/block}}
{{block 'script'}}
<!-- 添加js代码 -->
<script src="/static/admin/js/personData.js"></script>
{{/block }}
